﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ECCIT;
using OgilvyOne.UKNow.DALFactory;
using OgilvyOne.UKNow.Model;

namespace OgilvyOne.UKNow.BLL
{
    
    /// <summary>
    /// 会员活动提醒
    /// </summary>
  public partial class MemberReminderBLL
    {
      public int LanguageID { get; set; }
      public MemberReminderBLL(int langID)
        {
            this.LanguageID = langID;
        }

      /// <summary>
      /// 增加提醒
      /// </summary>
      /// <param name="info"></param>
      /// <returns></returns>
      public ResultInfo Save(MemberReminderMappingModel info)
       {
           return MemberReminderDALFactory.Create(LanguageID).Save(info);
       }

      /// <summary>
      /// 取消提醒
      /// </summary>
      /// <param name="mappingModel"></param>
      /// <returns></returns>
      public ResultInfo Delete(MemberReminderMappingModel mappingModel)
      {
          return MemberReminderDALFactory.Create(LanguageID).Delete(mappingModel);
      }

      /// <summary>
      /// 插入提醒
      /// </summary>
      /// <param name="modelInfo"></param>
      /// <returns></returns>
       public ResultInfo Insert(MemberReminderMappingModel modelInfo)
       {
           return MemberReminderDALFactory.Create(LanguageID).Insert(modelInfo);
       }
       /// <summary>
       /// 清除所的提醒
       /// </summary>
       /// <param name="mappingModel"></param>
       public void ClearAll(MemberReminderMappingModel mappingModel)
       {
            MemberReminderDALFactory.Create(LanguageID).ClearAll(mappingModel);
       }
    }
}
